package com.hzw.jdbc.day02;

import java.sql.ResultSet;
import java.sql.SQLException;

public class AppDemo01 {
    public static void main(String[] args) throws SQLException {
        String sql="select * from `user`";
        ResultSet query = Util01.query(sql);
        while (query.next()){
            System.out.println(query.getString(1));
            System.out.println(query.getString(2));
            System.out.println(query.getString(3));
        }
        Util01.close();

    }
}
